package com.sprouting.metadata.core;

import com.sprouting.metadata.core.model.TableModel;
import com.sprouting.metadata.core.interfaces.MetadataQueryProcessInterfaces;
import com.sprouting.metadata.core.model.ColumnModel;

import java.util.List;

/**
 * 测试接口
 *
 * @author ：LX（长沙麓谷）
 * @date 创建时间： 2022/4/25 9:36
 */
public class MetadataQueryInterfacesImpl implements MetadataQueryProcessInterfaces {
    @Override
    public void start() {
        System.out.println("查询之前");
    }

    @Override
    public void processColumn(TableModel table, ColumnModel column) {
        System.out.println("查询到字段：" + table.getTableName() + " 字段名：" + column.getColumnName());
    }

    @Override
    public void processTable(TableModel table) {
        System.out.println("查询到表");
    }

    @Override
    public void processComplete(List<TableModel> introspectedTableList) {
        System.out.println("查询结束");
    }
}
